//
//  Teacher.m
//  01-GitHomeWork
//
//  Created by Snow on 16/7/4.
//  Copyright © 2016年 QC.L. All rights reserved.
//

#import "Teacher.h"

@implementation Teacher

- (instancetype)initWithName:(NSString *)name age:(int)age weight:(float)weight height:(float)height
{
    self = [super init];
    if (self) {
        _name = name;
        _age = age;
        _weight = weight;
        _height = height;
    }
    return self;
}

- (void)setName:(NSString *)name
{
    _name = name;
}
- (NSString *)name
{
    return _name;
}

- (void)setAge:(int)age
{
    _age = age;
}
- (int)age
{
    return _age;
}

- (void)setWeight:(float)weight
{
    _weight = weight;
}
- (float)weight
{
    return _weight;
}

- (void)setHeight:(float)height
{
    _height = height;
}
- (float)height
{
    return  _height;
}

- (void)info
{
    NSLog(@"name:%@, age:%d, weight:%.2f, height:%.2f", _name, _age, _weight, _height);
}

@end
